#include <graphics/Skin.h>

namespace ne
{
    Skin::Skin(const std::string &name)
        : Object(name),
          Node()
    {
    }

    size_t Skin::getSize() const
    {
        if (mpMesh.notNull())
        {
            return mpMesh->getSize();
        }
        return 0;
    }

    void Skin::setMesh(const MeshPtr &pMesh)
    {
        mpMesh = pMesh;
    }

    MeshPtr Skin::getMesh() const
    {
        return mpMesh;
    }

    void Skin::setMaterial(const MaterialPtr &pMaterial)
    {
        mpMaterial = pMaterial;
    }

    MaterialPtr Skin::getMaterial() const
    {
        return mpMaterial;
    }

    Skin::~Skin()
    {
    }
}
